package cn.itcast.wanxinp2p.depository.mapper;


import cn.itcast.wanxinp2p.depository.entity.DepositoryRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;


/**
 * 存管交易记录表 Mapper 接口
 */
@Mapper
public interface DepositoryRecordMapper extends BaseMapper<DepositoryRecord> {


    /**
     * 更新 存管交易记录
     * @param requestNo
     * @param requestsStatus
     * @param now
     * @return
     */
    Boolean updateByRequestNo(@Param("requestNo") String requestNo, @Param("requestsStatus") Integer requestsStatus,
                              @Param("now") LocalDateTime now);

}
